<template>
    <div class="jobcommon zhiweimiaoshu EditResumeInfo">
        <div class="popBody">
            <div class="backnavjob">
                <h1 @click="closejibenxinxi('close')">
                    <img
                        data-v-61dd7a3d=""
                        src="../../assets//newimg/index/icon_right_h.png"
                        alt=""
                    />
                </h1>
                <h2>
                    <span>职位描述</span>
                </h2>
                <h3></h3>
            </div>
            <div class="split-block"></div>
            <div class="com-introduce">
                <textarea
                    placeholder="请输入职位描述"
                    id="tpl_contents"
                    v-model="contentsText"
                ></textarea>
            </div>
            <div class="com-introduce-tip">
                <div class="text-num">最多可输入2000字</div>
                <div class="J_empty text-clear">清空</div>
                <div class="clear"></div>
            </div>
            <div class="split-block"></div>
        </div>
        <div class="j_newbutton">
            <div class="j_newbtn" @click="closejibenxinxi()">保存</div>
        </div>
    </div>
</template>

<script>
// import { axiosPost } from '../../axios';
// import { Toast } from 'vant';
export default {
    name: '',
    props: ['contents'],
    data() {
        return {
            contentsText: '',
        };
    },
    computed: {},
    mounted() {
        this.contentsText = this.contents;
    },
    methods: {
        closejibenxinxi(type) {
            if (type) {
                this.$emit('closeProps', { type: 0, key: false });
                return;
            }
            this.$emit('closeProps', {
                type: 0,
                key: true,
                data: this.contentsText,
            });
        },
    },
};
</script>

<style lang="less" scope>
.zhiweimiaoshu {
    .com-introduce {
        background: #ffffff;
        padding: 0.7467rem;
    }

    .com-introduce textarea {
        width: 100%;
        height: 7.4667rem;
        border: 0px;
    }

    .com-introduce-tip {
        height: 1.8133rem;
        line-height: 1.8133rem;
        padding: 0 0.7467rem;
    }

    .com-introduce-tip .text-num {
        float: left;
    }

    .com-introduce-tip .text-clear {
        float: right;
        background-image: url(../../assets/jobimg/45.png);
        background-repeat: no-repeat;
        background-size: 0.8533rem;
        background-position: 0rem center;
        padding-left: 1.0667rem;
    }
}
</style>
